<html>

<head>
    <meta charset="UTF-8">
    <title>Nine Percent 尤长靖</title>
</head>

<body>
    <ol>
        <li>尤长靖<a>代表舞台</a></li>
        <li>《Can't Stop》</li>
        <li>《我怀念的》</li>
        <li>《我永远记得》</li>
        <li>《It's OK》</li>
    </ol>
    <script>
    'use strict'

    let a = false;
    a = 5;

    let sites = ['sina', 'baidu', 'qq'];

    // console.log(typeof a);
    // console.log(typeof sites);
    // console.log(sites[0]);

    let c = '500 years';
    // console.log(Number(c));
    // console.log(Boolean(c));

    // console.log(window);
    // console.log(window.location);
    // // window.location = 'http://www.baidu.com';
    // // console.log(window.innerHeigh)；
    // // window.alert();
    // console.log(window.navigator);

    var oLi = document.getElementsByTagName('li');
    for (var i in oLi) { console.log(i + '=' + oLi[i]); }
    console.log(oLi);
    console.log(oLi.length);
    console.log(oLi[0].childNodes[0].nodeValue);
    console.log(oLi[0].childNodes[0].nodeName);
    console.log(oLi[0].nodeName);
    console.log(oLi[0].nodeType);
    console.log(oLi[0].childNodes[0].nodeType);
    var oP = document.createElement("p");
    var oText = document.createTextNode("最后以主唱身份第九名出道");
    oP.appendChild(oText);
    document.body.appendChild(oP);
    </script>
</body>

</html>
